import React, { Suspense } from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom'
import App from './App'

ReactDOM.render(
  <Suspense fallback={<h1 style={{ color: 'red' }}>正在加载....</h1>}>
    <Router>
      <App />
    </Router>
  </Suspense>,
  document.getElementById('root')
)
